package com.qh.resourcehub.info.virtualresource.service.impl;

import com.qh.resourcehub.info.entity.ApplicationData;
import com.qh.resourcehub.info.virtualresource.dao.VmSupervisorReviewDao;
import com.qh.resourcehub.info.virtualresource.service.VmSupervisorReviewSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class VmSupervisorReviewSerivceImpl implements VmSupervisorReviewSerivce {
   @Autowired
   private VmSupervisorReviewDao vmSupervisorReviewDao;
    @Override
    public List<Map<String, Object>> queryVmReviewData(ApplicationData applicationData) {
        return vmSupervisorReviewDao.queryVmReviewData(applicationData);
    }

    @Override
    public int VmReviewPass(ApplicationData applicationData) {
        //TODO: 还需要增加主任审核信息表，来存放他驳回和通过的信息
        applicationData.setDataType("02");
        return vmSupervisorReviewDao.VmReviewPass(applicationData);
    }

    @Override
    public int VmReviewOverrule(ApplicationData applicationData) {
        //TODO: 还需要增加主任审核信息表，来存放他驳回和通过的信息
        applicationData.setDataType("04");
        return vmSupervisorReviewDao.VmReviewOverrule(applicationData);
    }
}
